/**
 * 
 * @author Jasonfang
 * auto build app v1.0
 * 
 */

class Build
{
	public static void build_prompt()
	{
		int i = 0;
		for(i=0; i <= 50; i ++)
		{
			System.out.print('*');
			if(i==50)
			{
				System.out.print('\n');
			}
		}
		
		System.out.println("Auto build Tools-[Java Version]");

		for(i=0; i <= 50; i ++)
		{
			System.out.print('*');
			if(i==50)
			{
				System.out.print('\n');
			}
		}	
	}
	
	public static void sig_handler_register()
	{
		SigHandler.register("INT");/* got ctrl-c */
		SigHandler.register("TERM");/* got kill signal */
	}
	
	public static void main(String[] args)
	{
		build_prompt();
		sig_handler_register();
		Image img = new Image();
		
		try{
			img.build_preparing();
			img.build();
			img.build_end();
			
			while(true)
			{
				Thread.sleep(1000); 
			}
			
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

}

